package com.whatever;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

import android.app.Activity;
import android.os.Bundle;

public class WritedatabasefileActivity extends Activity {
    
	File database;
	PrintWriter printer;
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        database = new File("/database.db");
        try {
			printer = new PrintWriter(new FileWriter(database, true),true);
		} catch (IOException e) {
			e.printStackTrace();
		}
        printer.print("");
    }
}